package com.designPattern.adapter.adapter;

import com.designPattern.adapter.controller.AnnotationController;

public class AnnotationAdapter implements Adapter{
    @Override
    public boolean supports(Object handler) {
        //判断是否为AnnotationAdapter这个类型
        return (handler instanceof AnnotationController);
    }
    @Override
    public void handle(Object handler) {
        //调用handler中的doAnnotationController()方法
        ((AnnotationController)handler).doAnnotationController();
    }
}
